import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
//引入移动端布局
import "amfe-flexible"
import "./assets/reset.css" //公共的样式

//引入 less
import less from 'less'
Vue.use(less)

//引入vant库  注意要同时引入依赖的css文件
import  vant from "vant"
import "vant/lib/index.css"
Vue.use(vant)

//定义全局过滤器
Vue.filter("priceStyle",(val)=>{
   return `￥${val.toFixed(2)}元`
})

//引人懒加载插件
import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload,{
  loading:require("./assets/loading.gif") 
})


//路由
import  router from "@/router/index.js"
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
